package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserActionLogDao;
import com.fqgj.xjd.user.entity.UserActionLogEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * User: sm
 * Date: 2019-05-10
 * Time: 19:15:29.413
 */

@Repository
public class UserActionLogDaoImpl extends AbstractBaseMapper<UserActionLogEntity> implements UserActionLogDao {

    @Override
    public List<UserActionLogEntity> selectListByTypeAndValues(Integer type, List<String> values) {
        HashMap<Object, Object> params = new HashMap<>();
        params.put("type", type);
        params.put("values", values);
        return getSqlSession().selectList(getStatement("selectListByTypeAndValues"), params);
    }
}